package com.lovo.bbs.controller;

import com.lovo.bbs.result.ResponseResult;
import com.lovo.bbs.service.ClassService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@ResponseResult
@RequestMapping("/classes")
@Tag(name = "班级管理")
public class ClassController {
    @Autowired
    private ClassService classService;
    @GetMapping("/all")
    public Object listAllClass(){
        return classService.listAllClass();
    }
}
